/*
 * @Author: Wanko
 * @Date: 2023-09-15 15:36:32
 * @LastEditors: Wanko
 * @LastEditTime: 2023-09-15 15:56:42
 * @Description: 
 */
const mongoose = require('mongoose')
const { connectStr } = require('../config')

mongoose
  .connect(connectStr, {
    useNewUrlParser: true,
    useUnifiedTopology: true
  })
  .then(() => {
    console.log('成功连接到远程 wanko 数据库')
  })
  .catch((err) => {
    console.error('连接远程 wanko 数据库时出错:', err)
  })
